#ifndef SENSORDEV_H
#define SENSORDEV_H

#include "Tool.h"

struct USensorData
{
    union
    {
        //两个值
        struct
        {
            double FirstValue;
            double SecondValue;
        } Values ;
        //一个值
        double Value;
    };
};

class CSensorDev
{
public:
    CSensorDev();
    ~CSensorDev();

    virtual void GetCmd(string & Command){}
    virtual void GetData(const string & ReturnData, struct USensorData & SensorData){}
    CTool * Tool;

};

#endif // SENSORDEV_H
